package org.springblade.modules.admin.vo.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Description 修改自动排期
 * @Author ysq
 * @Date 2022/3/15
 **/
@Data
public class ModifyPlanVO {

	@NotNull(message = "计划id不能为空!")
	@ApiModelProperty(value = "任务计划id")
	private List<Long> planIds;

	@NotNull(message = "电梯id不能为空!")
	@ApiModelProperty(value = "电梯id")
	private List<Long> elevatorIds;

	@ApiModelProperty(value = "模板id集合")
	private List<Long> templateIds;

	@ApiModelProperty(value = "旧日期(yyyy-MM-dd)")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date oldDate;

	@ApiModelProperty(value = "日期(yyyy-MM-dd)")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date date;

	@NotNull(message = "类型不能为空!")
	@ApiModelProperty(value = "类型 0：改期后的所有计划滚动调整，1：仅限本期")
	private Integer type;

	@ApiModelProperty(value = "工单执行人id集合")
	private List<Long> userIds;
}
